using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DefenseTools._Visibility
{
    /// <summary>
    /// <para>Radial Line Of Sight</para>
    /// <para>Shows  areas visible to one or more observer locations.</para>
    /// <para>显示对一个或多个观察点位置可见的区域。</para>
    /// </summary>    
    [DisplayName("Radial Line Of Sight")]
    public class RadialLineOfSight : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RadialLineOfSight()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_observer_features">
        /// <para>Input Observer Features</para>
        /// <para>The input observer points.</para>
        /// <para>输入观察点。</para>
        /// </param>
        /// <param name="_in_surface">
        /// <para>Input Surface</para>
        /// <para>The input elevation raster surface.</para>
        /// <para>输入高程栅格表面。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Visibility</para>
        /// <para>The output polygon feature class showing visible and nonvisible surface areas.</para>
        /// <para>显示可见和不可见表面区域的输出面要素类。</para>
        /// </param>
        public RadialLineOfSight(object _in_observer_features, object _in_surface, object _out_feature_class)
        {
            this._in_observer_features = _in_observer_features;
            this._in_surface = _in_surface;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "Defense Tools";

        public override string ToolName => "Radial Line Of Sight";

        public override string CallName => "defense.RadialLineOfSight";

        public override List<string> AcceptEnvironments => ["outputCoordinateSystem", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_observer_features, _in_surface, _out_feature_class, _radius, _observer_height_above_surface];

        /// <summary>
        /// <para>Input Observer Features</para>
        /// <para>The input observer points.</para>
        /// <para>输入观察点。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Observer Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_observer_features { get; set; }


        /// <summary>
        /// <para>Input Surface</para>
        /// <para>The input elevation raster surface.</para>
        /// <para>输入高程栅格表面。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Surface")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_surface { get; set; }


        /// <summary>
        /// <para>Output Visibility</para>
        /// <para>The output polygon feature class showing visible and nonvisible surface areas.</para>
        /// <para>显示可见和不可见表面区域的输出面要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Visibility")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Radius Of Observer (meters)</para>
        /// <para>The radius of the analysis area from the observer.</para>
        /// <para>距观察点的分析区域半径。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Radius Of Observer (meters)")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _radius { get; set; } = 1000;


        /// <summary>
        /// <para>Observer Height Above Surface (meters)</para>
        /// <para>The height added to the surface elevation of the observer. The default is 2.</para>
        /// <para>添加到观察点表面高程的高度。默认值为 2。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Observer Height Above Surface (meters)")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _observer_height_above_surface { get; set; } = 2;


        public RadialLineOfSight SetEnv(object outputCoordinateSystem = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}